package com.gandong8.trace.tool.service.impl;

import com.gandong8.trace.tool.domain.ResponseData;
import com.gandong8.trace.tool.domain.RequestData;
import com.gandong8.trace.tool.util.HttpUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service("myHttpService")
public class MyHttpService extends HttpPublicService {

    @Override
    ResponseData doBoth(RequestData requestData) throws Exception {
        return requestData.isGet() ? HttpUtil.doGet(requestData):HttpUtil.doPost(requestData);
    }
}
